<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="svr" value="${pageContext.request.serverName}" /> 
<c:set var="port" value="${pageContext.request.serverPort}" /> 
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>Server Details</title>
</head>
<body>



<h1>Databases on ${server}:</h1>

<table border=1>
   <tr>
      <th>Database</th>
      <th>Schema Version</th>
      <th>Size(MB)</th>
      <th>Num Tables</th>
   </tr>
   <c:forEach var="database" items="${databaseList}">
	   <tr>
	      <td>${database.dbName}</td>
	      <td>${database.schemaVersion}</td>
	      <td>${database.sizeMB}</td>
	      <td>${database.numTables}</td>
      </tr>
   </c:forEach>   
      
</table>


<a href="http://${svr}:${port}/dbmaint/serverList">Back to server list</a><br>
</body>
</html>